﻿using System;
using BusinessObject;
using Model;

namespace ViewLayer.Account
{
    public partial class ChangePassword : System.Web.UI.Page
    {
        private User user;

        protected void Page_Load(object sender, EventArgs e)
        {
            user = (User)Session["User"];
            if (user == null)
            {
                Response.Redirect("../Account/Login.aspx");
            }
        }

        protected void ChangePasswordPushButton_Click(object sender, EventArgs e)
        {
            UserBO.Instance.ChangePassword(this.ChangeUserPassword.CurrentPassword, this.ChangeUserPassword.NewPassword, user);
        }
    }
}